Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter by frequency of heterozygote genotypes #294

Merged
merged 4 commits into from
May 18, 2020
Merged

Conversation

nspope
Copy link
Contributor

@nspope nspope commented Mar 15, 2020

Adds -maxHetFreq <float> and -minHetFreq <float> options to -doHWE. These filter sites on basis of fraction heterozygote genotypes, using maximum likelihood estimates of F/allele freq that are already calculated for HWE test. Min/max filters can be used in tandem, and if either are invoked then the estimated fraction is printed as an additional column to output.hwe.gz.

This addresses #156, #248, #263 etc that all basically want a simple way to remove/extract collapsed paralogs.

@nspope
Copy link
Contributor Author

nspope commented May 18, 2020

hi, not to be bothersome, but just checking if there are issues with this pull request, as a few users are now using the associated branch. If there is a problem with merging it into master, I'm happy to keep the branch active and up-to-date.

@ANGSD ANGSD merged commit 5955d69 into ANGSD:master May 18, 2020
@ANGSD
Copy link
Owner

ANGSD commented May 18, 2020

Hi Very sorry about this, I hadnt seen this pull request, actually I hadnt noticed the other pull requests either. Thanks for poking me.

@madzafv
Copy link

madzafv commented Oct 28, 2020

Hi, to calculate the het, let's say per gene, do I just sum up the per site het frequencies (as output by -minHetFreq -1 -doHWE) across all sites within a gene startpos - endpos, and divide this sum by the total number of sites?
In other words, can the het freq for a region be just the avg across sites within that region?

@TeresaPegan TeresaPegan mentioned this pull request May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants